import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {RouterModule, Routes} from '@angular/router';
import {ImageCategoryComponent} from './image-category/image-category.component';
import {ImageManageComponent} from './image-manage/image-manage.component';
import {DecalCategoryComponent} from './decal-category/decal-category.component';
import {DecalManageComponent} from './decal-manage/decal-manage.component';
import {OrderManageComponent} from './order-manage/order-manage.component';
import {OrderDetailComponent} from './order-manage/order-detail/order-detail.component';

const routes: Routes = [
  {path: '', redirectTo: 'image-category', pathMatch: 'full'},
  {path: 'image-category', component: ImageCategoryComponent, data: {breadcrumb: '图片分类'}},
  {path: 'image-manage', component: ImageManageComponent, data: {breadcrumb: '图片管理'}},
  {path: 'decal-category', component: DecalCategoryComponent, data: {breadcrumb: '贴纸分类'}},
  {path: 'decal-manage', component: DecalManageComponent, data: {breadcrumb: '贴纸管理'}},
  {path: 'order-manage', component: OrderManageComponent, data: {breadcrumb: '订单管理', keep: true}},
  {path: 'order-detail', component: OrderDetailComponent, data: {breadcrumb: '订单详情'}},
];

@NgModule({
  imports: [RouterModule.forChild(routes)]
})
export class ManageRoutingModule {
}
